package com.xqiapp;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;
import java.util.Map;

/**
 * Created by rwrwd7 on 2017/9/26.
 */
@Controller
@RequestMapping("/jsper")
public class JsperController {

    @RequestMapping("/home")
    public String home(Map<String, Object> model){

        model.put("time", new Date());
        model.put("message", "home message");
        return "home";
    }

}
